import { buttonStyle } from '@/model/buttonStyle/buttonStyle';
import Http from '../http';

//新增按钮
export const insert = function (buttonStyle: buttonStyle) {
    return Http.post('/api/SysButtonStyle/AddButtonStyleMsg', buttonStyle)
}

//编辑按钮
export const update = function (buttonStyle: buttonStyle) {
    return Http.post('/api/SysButtonStyle/UpdateButtonStyleMsg', buttonStyle)
}

//删除样式
export const deleteButtonStyle = function (params?: { buttonStyleId?: string }) {
    return Http.delete('/api/SysButtonStyle/DeleteButtonStyleMsg', params)
}

//获取按钮样式数据
export const getButtonStyleList = function () {
    return Http.get('/api/SysButtonStyle/GetButtonStyleList')
}

//获取按钮样式数据
export const getButtonSelect = function () {
    return Http.get('/api/SysButtonStyle/GetButtonSelect')
}